package com.leonzhangxf.guice.bill;

import com.google.inject.Provider;

/**
 * A factory method provider could provide a database transaction log.
 *
 * @author leonzhangxf
 */
public class DatabaseTransactionLogProvider implements Provider<TransactionLog> {

    @Override
    public TransactionLog get() {
        DatabaseTransactionLog transactionLog = new DatabaseTransactionLog("jdbc:mysql://localhost/pizza");
        transactionLog.setThreadPoolSize(30);
        return transactionLog;
    }

}
